local jw_chuanghan = fk.CreateSkill {
    name = "jw_chuanghan",
    tags = { Skill.Compulsory }
}

Fk:loadTranslationTable {
    ["jw_chuanghan"] = "创寒",
    [":jw_chuanghan"] = "锁定技，“创”不计入手牌上限，无法打出，使用和弃置；每轮结束时，若“创”不小于13，你死亡。",
}
jw_chuanghan:addEffect(fk.RoundEnd, {
    anim_type = "drawcard",
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(jw_chuanghan.name) and #table.filter(player:getCardIds("h"), function(id)
            return Fk:getCardById(id):getMark("@@zhoutai_chuang-inhand") > 0
        end) >= 13
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:killPlayer({ who = player })
    end,
})
jw_chuanghan:addEffect("prohibit", {
    prohibit_use = function(self, player, card)
        return card and card:getMark("@@zhoutai_chuang-inhand") > 0
    end,
    prohibit_response = function(self, player, card)
        return card and card:getMark("@@zhoutai_chuang-inhand") > 0
    end,
    prohibit_discard = function(self, player, card)
        return card and card:getMark("@@zhoutai_chuang-inhand") > 0
    end,
})
jw_chuanghan:addEffect("maxcards", {
    exclude_from = function(self, player, card)
        return card:getMark("@@zhoutai_chuang-inhand") ~= 0
    end,
})
return jw_chuanghan
